import java.util.Arrays;
import java.util.Random;

public class Test1 {
    public static void main(String[] args) {
        int[] arr = fun();
        System.out.println(Arrays.toString(arr));
        A a = new A();
        Random random = new Random(111);
        int r =  random.nextInt(123);
        System.out.println(r);
    }

    public static int[] fun() {
        int x = 0, y = 1;

        return new int[]{x, y};

    }
}



class A {
    public char ch;
    // ch = 'a';  //语法不支持  会报错

    public A() {
        this(1000, 11);
        System.out.println("无参构造方法");
    }

    public A(int year, int age) {
        /*this();*/
        System.out.println("有参构造方法");
    }
}